import Vue from 'vue'
import App from './App.vue'
//引入路由器对象
import router from "@/router/router"
//引入vuex中的store
import store from "./store"
// 引入TypeNav组件
import TypeNav from "@comp/TypeNav"
//引入Swiper组件
import Swiper from '@comp/Swiper'
//引入Pagination组件
import Pagination from '@comp/Pagination'
//引入mock
import "@/mock"

/* import request from "./request/request"
const re = request.get("/api/product/getBaseCategoryList")
console.log(re,"re"); */

// 全局注册TypeNav组件
Vue.component("TypeNav", TypeNav)
// 全局注册Swiper组件
Vue.component("Swiper", Swiper)
// 全局注册Pagination组件
Vue.component("Pagination", Pagination)

Vue.config.productionTip = false
new Vue({
  render: h => h(App),
  router: router,
  //注入store
  store: store,
  beforeCreate() {
    Vue.prototype.$bus = this
  }
}).$mount('#app')